package SimpleFactoryModel;

public class Nvwa {

    public static Person createPerson(String type){
        Person person = null;
        if(type.equals("Woman")) {
            person = new Woman();
        }

        if(type.equals("Man")) {
            person = new Man();
        }

        if(type.equals("Robot")) {
            person = new Robot();
        }
        return person;
    }
}
